<script>
    // console.log(a);//输出undifind
    // var a = 123
    foo()
    //函数声明整体提升
    function foo() {
        var a = 123
        console.log(a);
    }
    
</script>